package org.bud.rung.netty.client;

import com.alibaba.fastjson.JSON;
import io.netty.channel.*;
import lombok.extern.slf4j.Slf4j;
import org.bud.rung.bit.R;

/**
 * @author shaun
 * @date 2024/8/10
 * @instruction
 */
@Slf4j
public class ClientOutHandler extends ChannelOutboundHandlerAdapter {
    @Override
    public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {
        log.info(JSON.toJSONString(msg));
        super.write(ctx, msg, promise);
    }
}
